
#include "time_n_date.h"
//kamus
string s,l,m,n;
Time t,r;
boolean b;
Date d,e;
//algoritma
int main()
{
	s.s = "02-02-91\0";
	s.length = 8;
	l.s = "02:10:30\0";
	l.length = 8;
	t = ParseTime(l);
	printf("%02d,%02d,%02d \n", (t.h),(t.m),(t.s));
	d = ParseDate(s);
	printf("%02d,%02d,%02d \n", (d.d),(d.m),(d.y));
	m = DateToString(d);
	printf("%s \n", m.s);
	n = TimeToString(t);
	printf("%s \n", n.s);
	e.y = 91;
	e.m = 02;
	e.d = 01;
	r.h = 12;
	r.m = 12;
	r.s = 2;
	b = IsDateLt(d,e);
	printf("%d \n", b);
	b = IsDateGt(d,e);
	printf("%d \n", b);
	b = IsDateEq(d,e);
	printf("%d \n", b);
	b = IsTimeLt(t,r);
	printf("%d \n", b);
	b = IsTimeGt(t,r);
	printf("%d \n", b);
	b = IsTimeEq(t,r);
	printf("%d \n", b);
	d = GetCurrentDate();
	printf("%02d,%02d,%02d \n", (d.d),(d.m),(d.y));
	t = GetCurrentTime();
	printf("%02d,%02d,%02d \n", (t.h),(t.m),(t.s));
	return 0;
}
